﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace getPixelInformation
{
    class element
    {
        private int count;
        private double rate;

        public element()
        {
            this.count = 0;
            this.rate = 0;
        }

        public element(int c, double rate)
        {
            this.count = c;
            this.rate = rate;
        }

        public element(element e)
        {
            this.count = e.count;
            this.rate = e.rate;
        }

        public int getCount()
        {
            return this.count;
        }

        public void setCount(int c)
        {
            this.count = c;
        }

        public double getRate()
        {
            return this.rate;
        }

        public void setRate(double r)
        {
            this.rate = r;
        }

        public void addCount()
        {
            this.count = this.count + 1;
        }

        public void addCount(int value)
        {
            this.count = this.count + value;
        }
    }
}
